from ultralytics import YOLO
# if __name__ == '__main__':
#     model = YOLO(r'yolo11n-obb.pt')
#     result = model.train(data=r'C:\Users\15123\Desktop\YOLO\yolo11-obb\DOTAv1.yaml', epochs=30, device=0, batch=4)
#     print(result)

# if __name__ == '__main__':
#     model = YOLO(r'C:\Users\15123\Desktop\YOLO\yolo11test\runs\detect\train3\weights\best.pt')
#     result = model.val(data=r'C:\Users\15123\Desktop\YOLO\yolo11-obb\DOTAv1.yaml')
#     print(result)

# if __name__ == '__main__':
#     model = YOLO(r'C:\Users\15123\Desktop\YOLO\yolo11test\runs\detect\train3\weights\best.pt')
#     result = model.predict(source=r'C:\Users\15123\Desktop\YOLO\yolo11test\datasets\Screenrecording_20250421_151345.avi', save=True)
#     print(result)

# if __name__ == '__main__':
#     model = YOLO(r'/yolo11test/runs/segment/seg50\weights\best.pt')
#     result = model.export(format='onnx')
#     print(result)